package com.beemans.topon.data

import android.os.Parcelable
import androidx.annotation.Keep
import kotlinx.parcelize.Parcelize
import kotlinx.parcelize.RawValue

/**
 * @author tiamosu
 * @date 2021/6/25.
 */
@Keep
@Parcelize
data class TpConfig(
    val tpId: String,                           //TopOn平台上应用id
    val tpKey: String,                          //TopOn平台Key
    val logEnabled: Boolean = false,            //是否开启log输出
    val globalCustom: CustomResponse? = null,   //流量分组，全局设置
    val placementCustoms: List<PlacementCustomResponse>? = null,   //流量分组，仅对当前Placement有效，优先级高于全局
    val isOpenDirectDownload: Boolean = true,   //广告平台的合规应用下载确认弹框，true：直接下载不弹框；false：弹框进行确认下载
    val isPersonalizedAds: Boolean = true,      //是否开启个性化推荐广告开关，默认为开启
    val privacyConfig: @RawValue PrivacyConfig? = null    //隐私合规配置
) : Parcelable